package com.farmpost.server.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.farmpost.server.pojo.Menu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author king
 * @since 2022-04-08
 */
public interface MenuMapper extends BaseMapper<Menu> {

    /**
     * 通过用户id查询菜单列表
     * @param userId
     * @return
     */
    List<Menu> getMenuByUserId(@Param("userId") Integer userId);
}
